DIRS=./src

include Makefile.config

compile:
	@for dir in $(DIRS); do \
		(cd $$dir; if [ -f ./Makefile ]; then $(MAKE) compile; fi;); \
	done
	rm -f $(OBJ_DIR)$(LIB_NAME).a
	$(LD) $(LD_FLAGS) lib/lib$(LIB_NAME).a $(OBJ_DIR)*.o
	
clean:
	rm lib/obj/*

